<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="java.util.Calendar"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>   
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>     
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>教职工历史工资查询</title>
<LINK href="style/css.css" type="text/css" rel="stylesheet">
</head>

<body>
<html:form action="salaryQuery.do?method=queryHistorySalary" method="post" onsubmit="true">
<table align="center" width="60%" border="0">
	<tr>
		<td class="STYLE4" align="center" bgcolor="#ffffff" colspan="2"
			height="40">教职工历史工资查询
		</td>
	</tr>
	<tr><td><table align="center" class="tableline" cellspacing="1" cellpadding="0" width="100%" border="0">
	<tr>
	  <td width = "30%" height = "26" align = "right" bgcolor = "#ffffff">查询年月：</td>
	  <td width = "70%" bgcolor = "#ffffff">
	  	<%   
	  		int thisYear=Calendar.getInstance().get(Calendar.YEAR);
	  		int thisMonth=Calendar.getInstance().get(Calendar.MONTH)+1;
	  	%>
	    &nbsp;<html:select property="year" style="width:60px;">
	    	<%for(int i=thisYear;i>thisYear-10;i--){ %>
	    		<html:option value="<%=String.valueOf(i) %>"><%=i%></html:option>
	    	<%} %>
	   	</html:select>
		<select name="month" style="width:55px;">
			<%for(int j=1;j<=12;j++){ %>
	    		<option value="<%=String.valueOf(j) %>" <%if(j==thisMonth){out.print("selected='selected'");} %>><%=j%></option>
	    	<%} %>
	   	</select>
	   	&nbsp;&nbsp;<html:submit value="查询详情"/>   	
	  </td>
	</tr>
	</table>
  </td></tr>
</table>
</html:form>
</body>
</html>